'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/api/login', controller.login.login);
  router.post('/api/register', controller.login.register);
  router.get('/api/mock', controller.home.mock);
  router.post('/api/lists', controller.home.getlist);
  router.post('/api/list', controller.home.list);
  router.post('/api/area', controller.home.area);
  router.delete('/api/del', controller.home.del);
  router.post('/api/search', controller.home.select);
  router.post('/api/search1', controller.home.select1);
  router.post('/api/borker', controller.home.borker);
  router.post('/api/live', controller.home.live);
  router.post('/api/indent', controller.home.indent);
  // router.post('/api/add', controller.home.getAdd);
  router.post('/api/detail',controller.home.detail);
  router.post('/api/getCitys',controller.home.getCity);

};
